package gx.service;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import gx.dao.SupplierDao;
import gx.entity.Supplier;
import gx.entity.common.Page;
import gx.service.common.BaseService;


@Service
public class SupplierService extends BaseService<Supplier> {
	private SupplierDao supplierDao;

	public SupplierDao getSupplierDao() {
		return supplierDao;
	}
    @Autowired
	public void setSupplierDao(SupplierDao supplierDao) {
		this.supplierDao = supplierDao;
		super.setDao(this.supplierDao);
	}
	public Page<Supplier> findByName(int size,int number,String name) {
		return supplierDao.findByName(size,number,name);
	}


}
